Main
expand_more
subdirectory_arrow_right Registration
Products
expand_more
subdirectory_arrow_right Maisema.Pro
subdirectory_arrow_right eForms
subdirectory_arrow_right Youth Card
expand_more
subdirectory_arrow_right
subdirectory_arrow_right Hourlog
Services
expand_more
subdirectory_arrow_right Websites
subdirectory_arrow_right Webcasting
subdirectory_arrow_right Hosting
subdirectory_arrow_right eLearning
Projects (Global)
Wiki
expand_more
subdirectory_arrow_right Framework
expand_more
subdirectory_arrow_right
subdirectory_arrow_right
subdirectory_arrow_right
subdirectory_arrow_right
subdirectory_arrow_right
subdirectory_arrow_right iCMS 3.1
expand_more
subdirectory_arrow_right
subdirectory_arrow_right
EU Projects
expand_more
subdirectory_arrow_right Project partners
User Guides
expand_more
subdirectory_arrow_right iCMS Content Management System
expand_more
subdirectory_arrow_right
subdirectory_arrow_right
subdirectory_arrow_right
Contact
Innoventum Organisation Presentation

Innoventum.fi

Object model (O)

The Object relational mapping model relies on an Object Factory for instantiating new objects based on their object descriptions stored in the Data Model and assigns database connections to them. 

The factory is used via the O class.

Objects can be single objects or lists thereof, which is usully denoted by appending 'list' to the objectname.

Object classes inherit their functionality from Object(List)Manager and their properties and their storage methods are defined in the Data Model, which in turn is edited via the Datamodel editor. Internally it is accessed via the object's ObjectDescription property.

Objects may also extend their functionality with new methods by introducing their own class descriptions, either  in the icms system context under applications/icms/[currentversion]/managers or locally to the project under php/

These classes in turn extend the ObjectManager or CacheableObjectManager and should be included using irequire() method before instantiating for the first time by the ObjectFactory - ObjectFactory does autoloading of the object descriptions only when the object is not found from the Datamodel database.

Instantiating objects

O::get("objecttype"[,database connection] [,logfile]);

Instantiates a new object of type objecttype with the current default database connection. An alternative database connection can be passed as object or databaseconnection name if needed.

O::load("objecttype",[filters] [,database connection] [,logfile]);

Instantiates and load a new object or list of objects of given objecttype, using the given (array of) filters.

Examples

No pages available.

DEBUG MODE | Route: /en/wiki/framework/object-model/:colorMode/light | Page: Object model (O) (ID: 52) | Language: fi | Execution Time: 2.5163 s | Db Queries: 238 | Access Level: 10
Performance Breakdown (Total: 2.516s) ▼ Click to expand
paths-initialized: 0s (0s) Paths initialized
server-config-loaded: 0s (0s) Server config loaded
composer-loaded: 0.002s (0.002s) Composer autoloader loaded
autoloaders-registered: 0s (0.002s) Autoloaders registered
request-parsed: 0s (0.002s) Request data parsed
site-config-loaded: 0.001s (0.003s) Site configuration loaded
objectmodel-constants-loaded: 0s (0.003s) ObjectModel constants loaded
objectmodel-log-initialized: 0s (0.003s) Log initialized
objectmodel-database-initialized: 0.001s (0.004s) Database connections initialized
objectmodel-cache-initialized: 0s (0.004s) Cache initialized
objectmodel-acm-initialized: 0.003s (0.007s) Access controller initialized
objectmodel-strings-initialized: 0s (0.007s) Language strings initialized
objectmodel-auditlog-initialized: 0.03s (0.037s) Site and audit log initialized
objectmodel-globals-evaluated: 0s (0.037s) Evaluated globals initialized
objectmodel-session-initialized: 1s (1.038s) Session initialized
objectmodel-compat-registered: 0s (1.038s) ObjectModel compatibility functions registered
version-paths-loaded: 0s (1.038s) Version-specific paths loaded
request-sanitized: 0.35s (1.388s) Request data sanitized
route-created: 0.001s (1.389s) Route object created
bootstrap-complete: 0s (1.389s) Bootstrap complete
route-set-current: 0.442s (1.831s) Current route set
language-initialized: 0s (1.831s) Request language initialized
handle-route-start: 0s (1.831s) Starting page route handler
layout-creating: 0.012s (1.843s) Creating Layout instance
layout-created: 0.007s (1.85s) Layout instance created
layout-displaying: 0s (1.85s) Starting layout display()
construct-page-start: 0.08s (1.93s) Starting constructPage()
footer-rendering: 0.586s (2.516s) Footer template data prepared
Loading...